home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / texinfo / info / termdep.h < prev    next >
C/C++ Source or Header  |  1994-01-28  |  2KB  |  65 lines

  1. /* termdep.h -- System things that terminal.c depends on. */
  2.  
  3. /* This file is part of GNU Info, a program for reading online documentation
  4.    stored in Info format.
  5.  
  6.    Copyright (C) 1993 Free Software Foundation, Inc.
  7.  
  8.    This program is free software; you can redistribute it and/or modify
  9.    it under the terms of the GNU General Public License as published by
  10.    the Free Software Foundation; either version 2, or (at your option)
  11.    any later version.
  12.  
  13.    This program is distributed in the hope that it will be useful,
  14.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.    GNU General Public License for more details.
  17.  
  18.    You should have received a copy of the GNU General Public License
  19.    along with this program; if not, write to the Free Software
  20.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  
  22.    Written by Brian Fox (bfox@ai.mit.edu). */
  23.  
  24. #if defined (HAVE_SYS_FCNTL_H)
  25. #include <sys/fcntl.h>
  26. #else
  27. #include <fcntl.h>
  28. #endif /* !HAVE_SYS_FCNTL_H */
  29.  
  30. #if defined (HAVE_TERMIO_H)
  31. #include <termio.h>
  32. #include <string.h>
  33. #if defined (HAVE_SYS_PTEM_H)
  34. #if !defined (M_XENIX)
  35. #include <sys/stream.h>
  36. #include <sys/ptem.h>
  37. #undef TIOCGETC
  38. #else /* M_XENIX */
  39. #define tchars tc
  40. #endif /* M_XENIX */
  41. #endif /* HAVE_SYS_PTEM_H */
  42. #else /* !HAVE_TERMIO_H */
  43. #include <sys/file.h>
  44. #include <sgtty.h>
  45. #include <strings.h>
  46. #endif /* !HAVE_TERMIO_H */
  47.  
  48. #if defined (HAVE_SYS_TTOLD_H)
  49. #include <sys/ttold.h>
  50. #endif /* HAVE_SYS_TTOLD_H */
  51.  
  52. #if !defined (HAVE_RINDEX)
  53. #undef index
  54. #undef rindex
  55. #define index strchr
  56. #define rindex strrchr
  57. #endif
  58.  
  59. #if !defined (HAVE_BCOPY)
  60. #undef bcopy
  61. #define bcopy(source, dest, count) memcpy(dest, source, count)
  62. #endif
  63.  
  64. /* eof */
  65.